<?php defined('SYSPATH') OR die('No direct access allowed.');

if(Kohana::$environment == Kohana::DEVELOPMENT)
{
	return array
	(
		'default' => array(
			'type'       => 'PDO',
			'connection' => array(
				'dsn'        => 'mysql:host=localhost;dbname=log',
				'username'   => 'root',
				'password'   => '123456',
				'persistent' => FALSE,
			),
			'table_prefix' => 'active_',
			'charset'      => 'utf8',
			'caching'      => FALSE,
		),
	);
}


if(Kohana::$environment == Kohana::TESTING)
{
	return array
	(
		'default' => array(
			'type'       => 'PDO',
			'connection' => array(
				'dsn'        => 'mysql:host=localhost;dbname=kohana',
				'username'   => 'root',
				'password'   => '123456',
				'persistent' => FALSE,
			),
			'table_prefix' => 'koh',
			'charset'      => 'utf8',
			'caching'      => FALSE,
		),
	);
}

if(Kohana::$environment == Kohana::PRODUCTION)
{
	return array
	(
		'default' => array(
			'type'       => 'PDO',
			'connection' => array(
				'dsn'        => 'mysql:host=localhost;dbname=kohana',
				'username'   => 'root',
				'password'   => '123456',
				'persistent' => FALSE,
			),
			'table_prefix' => 'koh',
			'charset'      => 'utf8',
			'caching'      => FALSE,
		),
	);
}
